package com.jdrx.ocp.beans.dto.company;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * 修改公司 DTO
 * @author : zhongsen
 * @date : 2019/01/30 11:18
 */
@ApiModel(value = "修改公司DTO",description = "修改公司DTO")
public class UpdateCompanyDTO {

    @NotNull
    @ApiModelProperty(value = "id",notes = "id")
    private Integer id;

    @ApiModelProperty(value = "上级公司ID",notes = "上级公司ID")
    private Integer pid;

    @NotBlank
    @ApiModelProperty(value = "公司名称",notes = "公司名称")
    private String  companyName;

    @ApiModelProperty(value = "公司联系人",notes = "公司联系人")
    private String  contact;

    @ApiModelProperty(value = "公司联系电话",notes = "公司联系电话")
    private String  tel;

    @ApiModelProperty(value = "公司地址",notes = "公司地址")
    private String  address;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "UpdateCompanyDTO{"+
                "id="+id+
                ", pid="+pid+
                ", companyName='"+companyName+'\''+
                ", contact='"+contact+'\''+
                ", tel='"+tel+'\''+
                ", address='"+address+'\''+
                '}';
    }
}
